<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li>
					<a href="" class="action" >商品列表</a>
				</li>
				<li>
					<a href="{|U:category}" >添加商品</a>
				</li>
			</ul>
		</div>
		<table class="table2">
			<thead>
				<tr>
					<td>gid</td>
					<td class="w600">商品名</td>
					<td>栏目</td>
					<td>图片</td>
					<td>操作</td>
				</tr>
			</thead>
			<list from="$data" name="d">
			    	<tr>
					<td>{$d.gid}</td>
					<td class="w600">{$d.gname}</td>
					<td>{$d.cname}</td>
					<td>
						<img src="__ROOT__/{$d.index_pic}" alt="" class="w50 h50">
					</td>
					<td>
						<a href="{|U:edit,array('gid'=>$d[gid])}">编辑</a>
						<a href="{|U:del,array('gid'=>$d[gid])}">删除</a>
					</td>
				</tr>
			</list>
			<tr>
					<td colspan='5' align="center" style="color:green">{$page}</td>
					
			</tr>
		</table>
	</div>
</body>
</html>